<style lang="less">
  .itemApp1App1{
    height: 32px;
    line-height: 32px;
  }
  .row-left{
    text-align: center;
  }
  .title{
    text-align: center;
    font-size: 1.5rem;
    padding: 20px;
  }
  .info-middleApp{
    height: 410px;
    background-color: #F8F8FF;
    padding-left: 70px;
    padding-right: 70px;
  }
  .ivu-steps-item {
    display: initial;
    position: relative;
    vertical-align: initial;
  }
  .step-item {
    float: left;
    margin-left: 0px;
  }
  .head-img {
    height: 120px;
    width:100px;
    position:absolute;
    left:1px;
    top:10px;
  }
  .red-name{
    color: red
  }
  .notice-name {
    line-height: 2.5;
    margin-top: 6%;
  }
  .notice-context {
    text-indent: 2em;
    line-height: 2.5;
  }
  .notice-content {
    padding: 0 15% 0 15%;
    position:relative;
  }
  .notice-address {
    text-align: right;
    margin-top: 10%;
  }
  .notice-date {
    text-align: right;
  }
  .text-line {
    border-color: #878787;
    border-style: solid;
    border-top-width: 0px;
    border-right-width: 0px;
    border-bottom-width: 1px;
    border-left-width: 0px;
    text-align: center;
  }
  .text-line-date {
    border-color: #878787;
    border-style: solid;
    border-top-width: 0px;
    border-right-width: 0px;
    border-bottom-width: 1px;
    border-left-width: 0px;
    width: 10%;
    text-align: center;
  }
  .text-line-address {
    border-color: #878787;
    border-style: solid;
    border-top-width: 0px;
    border-right-width: 0px;
    border-bottom-width: 1px;
    border-left-width: 0px;
    width: 15%;
    text-align: center;
  }
  .print-btn {
    padding: 15px;
    float: right;
  }
  .code-img {
    height: 120px;
    width: 120px;
    position: absolute;
    left: 2%;
    top: 25%;
  }
</style>
<template>
  <div style="background-color:white;line-height: 2.5;" class="notice-content">
    <div id="printMe">
      <div class="title">便民服务事项受理通知单</div>
      <div style="line-height: 2.5;">
        <div class="notice-name">尊敬的
          <input type="text" class="text-line">
          先生/女士:</div>
        <div class="notice-context">
          您于<input type="text" class="text-line-date">年
          <input type="text" class="text-line-date">月
          <input type="text" class="text-line-date">日来我社区提报的
          <input type="text" class="text-line" style="width: 30%;">事项,我社区已经受理,状态为
          <input type="text" class="text-line">(1.办理完结;2.流转至其他社区;3.提报至业务部门)。
        </div>
        <div class="notice-address">
          沈阳市
          <input type="text" class="text-line-address">区
          <input type="text" class="text-line-address">街道
          <input type="text" class="text-line-address">社区居民委员会
        </div>
        <div class="notice-date">
          <input type="text" class="text-line-date">年
          <input type="text" class="text-line-date">月
          <input type="text" class="text-line-date">日</div>
      </div>
      <div>
        <img :src="nophoto" alt="" class="code-img">
      </div>
    </div>
    <div class="print-btn">
      <Button type="success" size="large" v-print="'#printMe'">打印</Button>
    </div>
  </div>
</template>
<script>
import { getAppraising, createPostNew } from '@/api/eventlist'
import nophoto from '@/assets/images/ercode.jpeg'
export default {
  data () {
    return {
      value: '',
      ss17001Id: this.$route.params.ss17001Id,
      str: this.$route.params.serialNumber,
      idcardNumber: this.$route.params.idcardNumber,
      url: 'dbtb/submitAssistanceInfo',
      data: {
        ss17001Id: this.$route.params.ss17001Id,
        ssca0030: '',
        ssca0035: ''
      },
      data1: [],
      nophoto
    }
  },
  methods: {
    nextStep (step) {
      var params = {
        serialNumber: this.$route.params.serialNumber,
        idcardNumber: this.$route.params.idcardNumber
      }
      this.$router.push({
        name: 'stopinsurance',
        params: params
      })
    },
    save: function () {
      console.log(this.data)
      var param1 = {
        'request_map': this.data,
        'headers_map': {
          'serialNumber': this.str,
          'idcardNumber': this.idcardNumber
        },
        'url': this.url
      }
      console.log(param1)
      createPostNew(param1).then(res => {
        console.log(res, '停保保存返回的数据')
        this.$Message.success(res.data.data.memo)
        //  this.$router.push({
        //  name: 'subsistenceapplication1',
        //  params: {
        //    ss11001Id: this.data.ss11001Id || res.data.data.data.ss11001Id,
        //    ss11002Id: this.data.ss11002Id || res.data.data.data.ss11002Id,
        //    idcardNumber: this.idcardNumber,
        //    serialNumber: this.str
        //  }
        //  })
      })
    }
  },
  mounted () {
    console.log(this.str, this.idcardNumber, this.$route.params.ss17001Id)
    var param = {
      'idcardNumber': this.idcardNumber,
      'dictsCode': 'ss12001',
      'serialNumber': this.str
    }
    getAppraising(param).then(res => {
      this.data1 = res.data.data.data.StopInsuranceReasonDict
      console.log(res, '调用接口返回来的数据')
      // console.log(this.data1)
    })
  }
}
</script>
